/**
 * get the today in string format
 * @return Today in string format;
 */
function today(){
   var d, s='';
   d = new Date();
   s += d.getYear() + '-';
   s += (d.getMonth() + 1) + "-";
   s += d.getDate();
   return(s);
}
/**
 * Get the during dates.
 * @param s The start date.
 * @param e The end date.
 * @return The days between start date and ends.;
 */
function during(s,e){
	var sd = Date.parse(formatdate(s));
	var ed = Date.parse(formatdate(e));    

	return (((ed - sd) / (24 * 60 * 60 * 1000)) + 1) * 8; 
}

/**
 * format the date from "yyyy-MM-dd" format to "mm/dd/yyyy" format.
 * @param s  the date in "yyyy-MM-dd" format.
 * @return The date in "mm/dd/yyyy" format.
 */
function formatdate(s)
{
	var ret,ary;
	ary=s.split("-");
	ret=ary[1]+"/"+ary[2]+"/"+ary[0];
	return ret;
}